﻿using FluentMigrator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.DbMigrations.V20140524
{
    [Migration(2014092109)]
    public class _04_FileTypeInit : AutoReversingMigration
    {
        public override void Up()
        {
            var now = DateTime.Now;
            Insert.IntoTable("FileType")
           .Row(new { FileTypeId = "1d9a3dcb-15ac-4881-9cbd-b912692752bc", FileTypeName = "特色海报小图", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FileTypeId = "6ccbe630-e55f-45af-82e2-ca93226665cc", FileTypeName = "特色海报大图", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FileTypeId = Guid.NewGuid().ToString(), FileTypeName = "日本受入机构资料下载", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FileTypeId = Guid.NewGuid().ToString(), FileTypeName = "国内派遣机构资料下载", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FileTypeId = Guid.NewGuid().ToString(), FileTypeName = "对外劳务合作经营资格证书", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FileTypeId = Guid.NewGuid().ToString(), FileTypeName = "营业执照", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FileTypeId = Guid.NewGuid().ToString(), FileTypeName = "募集要项", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FileTypeId = Guid.NewGuid().ToString(), FileTypeName = "App引导图", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { FileTypeId = Guid.NewGuid().ToString(), FileTypeName = "App广告图", CreateDate = now, ModifyDate = now, IsDelete = 0 });
        }
    }
}
